#ifndef DATACLASS_H
#define DATACLASS_H

#include <QMainWindow>
#include <QObject>

class DataClass : public QObject
{
    Q_OBJECT
public:
    int index;

    int max, min;

    explicit DataClass(QObject *parent = nullptr);
    int dataVector[20000000];//一亿个点
    int maxData[7882];
    int minData[7882];
    int indData[7882];


signals:

public slots:
    void txt2dataV(char *filePath);
    void initializeMaxMin();
    int findMaxMin(int beginN, int sizeMe);
    void findMaxMinData(int begin, int end);
};

#endif // DATACLASS_H
